import fetch from 'qzd-v3-busicompo/lib/request/index'
interface OPTIONS_FC {
  headers?: Object
  [propName: string]: any
}
console.log('fetch1-10', fetch)
const request = (options: OPTIONS_FC) => {
  let _options = { ...options }
  const _headers = {
    MODE: import.meta.env.MODE,
    'Content-Type': 'application/json; charset=UTF-8',
  }
  const HEADERS = Object.assign(_headers, options?.headers || {})
  return fetch({
    ..._options,
    headers: HEADERS
  })
}

export default request
